home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 7 / Apprentice-Release7.iso / Source Code / C / Applications / POV-Ray 3.0.2 / src / POV-Ray Build Extras / Magic Lamp / Lamp Icon.POV next >
Encoding:
Text File  |  1996-10-10  |  1.8 KB  |  72 lines  |  [TEXT/POV3]

  1. // Persistence of Vision RayTracer Scene description file
  2. // File: Lamp Icon.pov
  3. // Version: 3
  4. // Description: Magic lamp icon
  5. // Date: 2/19/95
  6. // Author: Eduard Schwan
  7. //
  8.  
  9. // ==== Standard POV-Ray Includes ====
  10. #include "colors.inc"      // Standard Color definitions
  11. #include "metals.inc"      // Metal Texture definitions
  12.  
  13. // ----------------------------------------------------------
  14. //  Camera
  15. // ----------------------------------------------------------
  16. camera
  17. {
  18.   location  <0.0,  0.0, -6.3> // large image
  19.   direction 2.0*z              // which way are we looking <X Y Z>
  20.   up        y                  // which way is +up <X Y Z>
  21.   right     4/2*x
  22.   look_at   <0.0, -0.2,  0.0>  // point center of view at this point <X Y Z>
  23. }
  24.  
  25.  
  26. // ----------------------------------------------------------
  27. //  Sky Blend
  28. // ----------------------------------------------------------
  29. sky_sphere
  30. {
  31.   pigment {
  32.     gradient y
  33.     color_map {
  34.       [0.0 red 0.5] [0.1 red 1] [0.3 White]
  35.       [0.7 White] [0.9 blue 1] [1.0 blue 0.5]
  36.     }
  37.     scale 2 translate -y
  38.   }
  39. }
  40.  
  41. // ----------------------------------------------------------
  42. //  Lights
  43. // ----------------------------------------------------------
  44.  
  45. light_source { 0*x color White translate <15, 20, -15> }
  46.  
  47. light_source { 0*x color Gray10 translate <-5, 20, -5> }
  48. light_source { 0*x color Gray10 translate < 0, 20, -5> }
  49. light_source { 0*x color Gray10 translate < 5, 20, -5> }
  50.  
  51. light_source { 0*x color White translate <0, -5, -20> } // under
  52.  
  53. #declare Lamp_Texture =
  54. texture { T_Brass_4B }
  55.  
  56. #include "Magic Lamp.inc"
  57. object
  58. {
  59.   Magic_Lamp
  60.   rotate <-10,-10,0>
  61. }
  62.  
  63.  
  64. // ----------------------------------------------------------
  65. //   Smoke
  66. // ----------------------------------------------------------
  67.  
  68. #include "Smoke.inc"
  69. object { Smoke_Shape texture {Smoke_Texture} translate <-2.6, -0.7, 0.0> }
  70.  
  71.  
  72.